package com.qboot.rabbitmq.simple;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * 简单模型 Simple - 消费者
 *
 * @author Tellsea
 * @date 2023/3/7
 */
@Component
@RabbitListener(queues = SimpleConst.QUEUE_NAME)
public class SimpleConsumer {

    @RabbitHandler
    public void receive(String message) {
        System.out.println("SimpleConsumer 消费者：" + message);
    }
}
